import Vue from "vue";
import VueRouter from "vue-router";
import DYCate from "../views/DYCate.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "DYCate",
    component: DYCate,
  },
  {
    path: "/list/:cate_id",
    name: "DYList",
    component: () =>
      import(/* webpackChunkName: "list" */ "../views/DYList.vue"),
  },
  {
    path: "/detail/:room_id",
    name: "DYDetail",
    component: () =>
      import(/* webpackChunkName: "detail" */ "../views/DYDetail.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
